package com.xiongxiong.yiqing.exception;


import com.xiongxiong.yiqing.api.IErrorCode;


/**
 * 断言处理类，用于抛出各种API异常
 * @author 熊林飞
 * @date: 2022/12/14 14:15
 */
public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }

}
